<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*;"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>You are Transforer Page</title>
<link href="images664/style.css" rel="stylesheet" type="text/css"
	media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<script type="text/javascript" src="images664/jquery-1.3.2.min.js"></script>

<% 
Properties props = new Properties(System.getProperties());

List optionsList123=new ArrayList();
Connection con=null;
String optionvalue="";
try{
	Class.forName("org.gjt.mm.mysql.Driver");
	con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root1");
	Statement st=con.createStatement();
	
	ResultSet rs=st.executeQuery("select * from investment_in_india");
	
	while(rs.next()){
		OptionsList obj = new OptionsList();
		obj.setOptionId(rs.getString(1));
		obj.setListTypeId(rs.getString(2));
		obj.setOptionLabel(rs.getString(3));
		obj.setOptionValue(rs.getString(4));
		optionsList123.add(obj);
	}
}catch(Exception e ){
	e.printStackTrace();
	con.close();
	
}
%>
<script type="text/javascript">
function onQuestClick(id){
	var id1= document.getElementById(id);
	alert(id1.value+"++++++++first");
		switch (id1.value)
	{    
	case '200':
		 document.getElementById("litag90").style.display="none";
		 document.getElementById("litag91").style.display="none";
		 document.getElementById("litag92").style.display="none";
		 document.getElementById("litag93").style.display="";
		 document.getElementById("quest").style.display="";
		 break;
	case '201':
         document.getElementById("litag90").style.display="";
		 document.getElementById("litag91").style.display="none";
		 document.getElementById("litag92").style.display="none";
		 document.getElementById("litag93").style.display="none";
		 document.getElementById("quest").style.display="";
		 break;
	case '202':
         document.getElementById("litag90").style.display="none";
		 document.getElementById("litag91").style.display="";
		 document.getElementById("litag92").style.display="none";
		 document.getElementById("litag93").style.display="none";
		 document.getElementById("quest").style.display="";
		 break;
	case '203':
         document.getElementById("litag90").style.display="none";
		 document.getElementById("litag91").style.display="none";
		 document.getElementById("litag92").style.display="";
		 document.getElementById("litag93").style.display="none";
		 break;
	
	default:
		document.getElementById("litag90").style.display="";
	 	document.getElementById("litag91").style.display="";
	 	document.getElementById("litag92").style.display="";
	 	document.getElementById("litag93").style.display="";
	 	document.getElementById("quest").style.display="";
         
		 var radList3 = document.getElementsByName("qest");
		  for (var i = 0; i < radList3.length; i++) {
		 if(radList3[i].checked) radList3[i].checked = false;
		 }
	}	
		
}


function onQuestClick1(id){
	var id1= document.getElementById(id);
	alert(id1.value+"++++++++first");
		switch (id1.value)
	{    
	case '210':
		 document.getElementById("transforee94").style.display="";
		 document.getElementById("transforee95").style.display="none";
		 document.getElementById("transforee96").style.display="none";
		 document.getElementById("transforee97").style.display="none";
		 document.getElementById("quest").style.display="";
		 break;
	case '211':
         document.getElementById("transforee94").style.display="none";
		 document.getElementById("transforee95").style.display="";
		 document.getElementById("transforee96").style.display="none";
		 document.getElementById("transforee97").style.display="none";
		 document.getElementById("quest1").style.display="";
		 break;
	case '212':
         document.getElementById("transforee94").style.display="none";
		 document.getElementById("transforee95").style.display="none";
		 document.getElementById("transforee96").style.display="";
		 document.getElementById("transforee97").style.display="none";
		 document.getElementById("quest1").style.display="";
		 break;
	case '213':
         document.getElementById("transforee94").style.display="none";
		 document.getElementById("transforee95").style.display="none";
		 document.getElementById("transforee96").style.display="none";
		 document.getElementById("transforee97").style.display="";
		 break;
	
	default:
		document.getElementById("transforee94").style.display="";
	 	document.getElementById("transforee95").style.display="";
	 	document.getElementById("transforee96").style.display="";
	 	document.getElementById("transforee97").style.display="";
	 	document.getElementById("quest1").style.display="";
         
		 var radList3 = document.getElementsByName("qest1");
		  for (var i = 0; i < radList3.length; i++) {
		 if(radList3[i].checked) radList3[i].checked = false;
		 }
	}	
		
}

function onQuestClick2(id){
	var id1= document.getElementById(id);
		switch (id1.value)
	{    
	case '220':
		 document.getElementById("transforor98").style.display="";
		 document.getElementById("transforor99").style.display="none";
		 document.getElementById("quest2").style.display="";
		 break;
	case '221':
         document.getElementById("transforor98").style.display="none";
		 document.getElementById("transforor99").style.display="";
		 document.getElementById("quest2").style.display="";
		 break;
		
	default:
		document.getElementById("transforor98").style.display="";
	 	document.getElementById("transforor99").style.display="";
	 	document.getElementById("quest2").style.display="";
		 var radList3 = document.getElementsByName("qest2");
	  for (var i = 0; i < radList3.length; i++) {
		 if(radList3[i].checked) radList3[i].checked = false;
		 }
		
	}	
		
		
}

function setVisibilityArr(varArray,visibility){
    if(null != varArray){
        for(i = 0; i < varArray.length; i++){
            var tdvar = varArray[i];
            if(tdvar != null){
            tdvar.style.display=visibility;
            }
        }
    }
 }

</script>
<body bgcolor="blue">
	<form name="frm">
		<table width="800" align="center" border="0" cellspacing="0"
			cellpadding="0" valign="middle">
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="900" align="center" class="TDBBLR" border="0"
			cellspacing="0" cellpadding="0" valign="middle">
			<tr>
				<td class="test" width="900" callspan="1"><font>Transferor
						&nbsp;<a style="display: none;" id="quest"
						href="javascript:onQuestClick('quest')" value="show all"
						align="right">show all</a>
				</font></td>
			</tr>
			<% if(optionsList123 != null){
	
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("200")){
	%>
			<tr id="litag<%=i+1%>">
				<td><font><input type="radio" name="qest"
						id="<%=obj.getOptionId()%>" value="<%= obj.getOptionValue()%>"
						onclick="onQuestClick('<%=obj.getOptionId() %>')" />&nbsp;&nbsp;&nbsp;<%= obj.getOptionLabel()%></font></td>
			</tr>
			<%	
	}
	}	  		
	
} %>


			<table width="800" align="center" border="0" cellspacing="0"
				cellpadding="0" valign="middle">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			<table width="900" align="center" class="TDBBLR" border="0"
				cellspacing="0" cellpadding="0" valign="middle">
				<tr>
					<td class="test" width="900" callspan="1"><font>Transferor
							&nbsp;<a style="display: none;" id="quest1"
							href="javascript:onQuestClick1('quest')" value="show all"
							align="right">show all</a>
					</font></td>
				</tr>
				<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("210")){
	%>
				<tr id="transforee<%=i+1%>">
					<td><font><input type="radio" name="qest1"
							id="<%=obj.getOptionId()%>" value="<%= obj.getOptionValue()%>"
							onclick="onQuestClick1('<%=obj.getOptionId() %>')" />&nbsp;&nbsp;&nbsp;<%= obj.getOptionLabel()%></font></td>
				</tr>
				<%	
	}
	}	  		
} %>
			</table>

			<table width="800" align="center" border="0" cellspacing="0"
				cellpadding="0" valign="middle">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			<table width="900" align="center" class="TDBBLR" border="0"
				cellspacing="0" cellpadding="0" valign="middle">
				<tr>
					<td class="test" width="900" callspan="1"><font>Type of
							transfer &nbsp;<a style="display: none;" id="quest2"
							href="javascript:onQuestClick2('quest')" value="show all"
							align="right">show all</a>
					</font></td>
				</tr>
				<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("220")){
	%>
				<tr id="transforor<%=i+1%>">
					<td><font><input type="radio" name="qest2"
							id="<%=obj.getOptionId()%>" value="<%= obj.getOptionValue()%>"
							onclick="onQuestClick2('<%=obj.getOptionId() %>')" />&nbsp;&nbsp;&nbsp;<%= obj.getOptionLabel()%></font></td>
				</tr>
				<%	
	
	}
	}	  		
	
} %>
			</table>
			<div id="table2">
				<table width="800" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLR" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr id="TR01">
						<td colspan="2" class="test" width="900" id=""><b>Type Of
								Sector</b></td>
					</tr>
					<tr id="TR04">
						<td colspan="2"><select
							style="width: 700px; border-radius: 5px;" name="qest2"
							onChange="onSectorChange()" id="sectorid">
						</select></td>
					</tr>
				</table>
			</div>
			<div id="table3">
				<table width="800" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLR" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr>
						<td class="test" width="900"><font><b>Type Of Sub
									Sector</b></font></td>
					</tr>
					<tr id="TR06">
						<td colspan="2"><select
							style="width: 700px; border-radius: 5px;" name="qest3"
							onChange="onSubSectorChange()" id="subsectorid">&nbsp;
						</select></td>
					</tr>
				</table>
			</div>
			<div id="table8">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr class="test">
						<td width="200" colspan="2"><b>Whether The Investee Is
								&nbsp;</b></td>
						<td width="700" colspan="2"><b><label for="repyes"><input
									type="radio" value="Y" name="repat" id="repyes"
									onClick="onClickRepatriation()"><span class="seperator"
									onMouseover="ddrivetip('  some text for Repatation', 300)"
									;
onMouseout="hideddrivetip()">Repatriation</span>&nbsp;&nbsp;</label><label
								for="repno"><input type="radio" value="N" name="repat"
									id="repno" onClick="onClickRepatriation()"><span
									class="seperator"
									onMouseover="ddrivetip(' some text for NonRepatation', 300)"
									;
onMouseout="hideddrivetip()">Non Repatriation</span></b></td>
					</tr>
				</table>
			</div>
			<div id="table4">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLR" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr>
						<td class="test" width="900" id=""><b>Mode Of Investment</b>
							&nbsp;<a style="display: none;" id="quest2"
							href="javascript:onInvModeChange('quest2')" value="show all"
							align="right">show all</a></td>
					</tr>
					<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("23")){
	%>
					<tr id="invmode<%=obj.getOptionValue()%>">
						<td title="<%=obj.getOptionValue()%>"><font><b><label
									for="<%=obj.getOptionId()%>~<%=obj.getQestFlag()%>"><input
										type="radio" name="modeofinvest"
										id="<%=obj.getOptionId()%>~<%=obj.getQestFlag()%>"
										value="<%=obj.getOptionValue()%>"
										onclick="onInvModeChange('<%=obj.getOptionId()%>~<%=obj.getQestFlag()%>')" />&nbsp;&nbsp;&nbsp;<%= obj.getOptionLabel()%></label></b></font></td>
					</tr>
					<%	
	}
	}	  		
} %>
				</table>
			</div>
			<table width="900" align="center" border="0" cellspacing="0"
				cellpadding="0" valign="middle">
				<tr>
					<td id="myDiv1"></td>
				</tr>
			</table>
			<div id="table5">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLRT" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr class="test">
						<td width="70%"><b>Whether the Investee Indian Company is
								Micro, Small and Medium Enterprise in terms of Micro, Small and
								Medium Enterprises Development (MSMED) Act, 2006 .</b></td>
						<td width="30%"><b><label for="tr8yes">Yes&nbsp;<input
									type="radio" value="Y" name="msmed" id="tr8yes"
									onClick="onClickMSMED()"></label>&nbsp;&nbsp;<label for="tr8no">No&nbsp;<input
									type="radio" value="N" name="msmed" id="tr8no"
									onClick="onClickMSMED()"></label></b></td>
					</tr>
				</table>
			</div>
			<div id="table6">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLRT" border="0"
					cellspacing="0" cellpadding="0" valign="middle" id="test1">
					<tr>
						<td><font><b>If yes, Please select the type of
									industry .</b></font></td>
					</tr>
					<tr>
						<td><select style="width: 700px; border-radius: 5px;"
							name="toi" onChange="onChange3()" id="optionvalue3"><option
									vlaue="Select One" default>Select One</option>

						</select>
						<td align="right"><input type="text" name="other"
							style="border-radius: 5px;" /></td>
						</td>
					</tr>
				</table>
			</div>
			<div id="table7">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="900" align="center" class="TDBBLRT" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr class="test">
						<td width="70%"><b>If not MSMED, please confirm whether
								it is an industrial undertaking having an industrial license
								under the provisions of The Industries (Development &
								Regulation) Act, 1951 for items reserved for MSE Sector .</b>
						<td width="30%"><b><label for="yesnmsmed">Yes&nbsp;<input
									type="radio" value="Y" name="notmsmed" id="yesnmsmed"
									onClick="onClickNotMSMED()"></label>&nbsp;&nbsp;<label
								for="nonmsmed">No&nbsp;<input type="radio" value="N"
									name="notmsmed" id="nonmsmed" onClick="onClickNotMSMED()"></label></b></td>
						</td>
					</tr>
				</table>
			</div>
			<div id="submitbutton" style="display: none;">
				<table width="900" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>


					<tr>
						<td align="center"><a align="center" id="finalanswer"
							href="javascript:goForConclution()" value="">Go For
								Conclusion</a></td>
					</tr>

				</table>
			</div>
			<div id="Answers" style="display: none;">
				<table width="800" align="center" border="0" cellspacing="0"
					cellpadding="0" valign="middle">
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>

				<table width="900" align="center" class="TDBBLRT" border="0"
					cellspacing="0" cellpadding="0" valign="middle">
					<tr>
						<td class="test" width="900" callspan="1" align="left"><b>Know
								Your Eligibility</b></td>
					</tr>
					<tr>
						<td id="myDiv"></td>
					</tr>
				</table>
			</div>
</body>
</html>